package com.atguigu.dao;

import com.atguigu.pojo.Order;

import java.util.List;
import java.util.Map;

/**
 * @author Eric
 * @Create 2020-09-20  17:32
 * @Version project-workspace-0912
 **/
public interface OrderDao {

    //根据预约信息查询是否已经预约
    List<Order> findByCondition(Order order);

    //保存预约信息到预约表
    void add(Order order);

    Map findById4Detail(Integer id);

    int getTodayOrderNumber(String today);

    int getTodayVisitsNumber(String today);

    int getThisWeekAndMonthOrderNumber(Map<String, Object> paramWeek);

    int getThisWeekAndMonthVisitsNumber(Map<String, Object> paramWeekVisit);

    List<Map<String, Object>> findHotSetmeal();

}
